package com.qf.smartdevice.mapper;

import com.qf.smartdevice.pojo.Areas;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface AreaMapper {
    @Select("select * from areas")
    List<Areas> findAll();

    int deleteByIdArea(@Param("ids") int[] ids);

    @Insert("insert into areas value(null,#{areaname},#{parentid},#{status})")
    int insertArea(Areas areas);

    int updateByIdArea(Areas areas);

}
